﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using InvoiceProject.Models;

namespace InvoiceProject.Controllers
{
    public class BaseController : Controller
    {


       public void UpdateEntityForSave(BaseModel entity, string userName)
       {
           entity.DateModified = DateTime.Now;
           entity.UserModified = userName;
           if (entity.Id != 0) return;
           //entity.UserCreated = userName;
           //entity.DateCreated = DateTime.Now;

        
       }

      

    }
}
